package com.service;
import com.pojo.Address;
import java.util.List;
import java.util.Map;

import com.entity.User;

public interface UserService {
	int userLogin(int userid,String pwd);
	User selectUserById(int userid);
	void updateUser(User user);
	int findtUserId(int userid);
	void insertUser(User user);
	
	List<Address> selectAddressById(int userid);
	Address findAddid(Integer addressid);
	Integer updateAddress(Address address);
	Integer deleteAddress(Integer addressid);
	Integer insertAddress(Address address);
	Integer getUserIdByAid(Integer addressid);
	Integer selectdefault(Integer userid);
	Address selectAddressByAid(Integer addressid);
	
	void setnodefault(Integer userid);
	void insertdefault(Address address);
	void updatedefault(Address address);
	int updateMoneyByUId(Integer userid,double sum);
	int selectReceived(int userid);
	int selectPayed(int userid);
	int selectCartNum(int userid);
	List<Map<String, Object>> selectAllUser();
	int updateUserState(int userid);
}
